If object set has an object property create an array